def map_string(string):    result = ''    for char in string:        if char.isupper():            result += '1'        elif char.islower():            result += '0'        else:            result += char    return resultinput_string = input("请输入一个字符串：")mapped_string = map_string(input_string)print("映射结果：", mapped_string)